// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
 //import '../static/css/theme-green/index.css';       // 浅绿色主题
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'

import filters from './filters';
import ImgSrc from './plugins/img_src'
import HighLight from './plugins/highlight'
Vue.use(ElementUI);
Vue.use(ElementUI);
Vue.use(mavonEditor);
Vue.use(ImgSrc);
Vue.use(HighLight);


//注册自定义过滤器
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));

// 是否展示生产过程中的提示
Vue.config.productionTip = false;

/* eslint-disable no-new */

import 'src/assets/js/ajax-util'

new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})

